
#include "Signals.h"
#include "Recorder.h"

Recorder::Recorder()
{

}
Recorder::~Recorder()
{

}

const BByteArray& Recorder::buffer() const
{
	return _buffer;
}
bool Recorder::clear()
{
	_buffer.clear();
	return true;
}

bool Recorder::audioEvent(const BAudioEvent& audioEvent)
{
	_buffer.append(audioEvent.buffer()->bytes());
	emit(Signal_Recording, _buffer);
	return true;
}
